home *** CD-ROM | disk | FTP | other *** search
- tell application "MenuScripter"
- copy selection of window 1 to usersel
- copy style of usersel to selstyle
- if on styles of selstyle contains italic then
- set x to {class:text style info, on styles:{}, off styles:{italic}}
- else
- set x to {class:text style info, on styles:{italic}, off styles:{}}
- end if
- set style of usersel to x
- end tell